<% include file="header.html" %>
		
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			
			
			<!-- Page Head -->
			<h2>Keyword广告</h2><p class="clear"></p>
			
			
			<ul class="shortcut-buttons-到set" style="display:none;">
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/pencil_48.png" alt="icon" /><br />
					Write an Article
				</span></a></li>
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/paper_content_pencil_48.png" alt="icon" /><br />
					Create a New Page
				</span></a></li>
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/image_add_48.png" alt="icon" /><br />
					Upload an Image
				</span></a></li>
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/clock_48.png" alt="icon" /><br />
					Add an Event
				</span></a></li>
				
				<li><a class="shortcut-button" href="#messages" rel="modal"><span>
					<img src="images/icons/comment_48.png" alt="icon" /><br />
					Open Modal
				</span></a></li>
				
			</ul><!-- End .shortcut-buttons-set -->
			
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
                                        <span style="margin-left:20px; float:left; line-height:36px;font-size:16px;">关键词广告导入管理</span>

					<div class="clear"></div>
					
			  </div> <!-- End .content-box-header -->
				
				<div class="content-box-content" style="padding:0;">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						<table class="table_list">
							<thead style="border:none;">
								<tr>
                                   <th>&nbsp;</th>
								   <th style="padding:10px 0 10px 4px" >ID</th>
								   <th>订单</th>
                                   <th>广告主</th>
								   <th>创意名称</th>
								   <th>投放名称</th>
								   <th>开始日期</th>
                                   <th>结束日期</th>
                                   <th>权重</th>
                                   <th>状态</th>
                                   <th width="106">操作</th>
								</tr>
								<form action="index.php?do=kws.show" method="post">
								<tr class="input_search">
                                	<th width="25" style="padding:0"><input type="checkbox" id="check_all" onclick="checkAll('check_all');" style="margin:3px 6px; padding:0;" enable="true" ></th>
									<th style="padding:0;"><input type="text" style="width:50px;margin:3px 6px; padding:0;" name="v_id" value="<% $params.v_id%>" ></th>
									<th style="padding:0;"><input type="text" name="v_order" value="<% $params.v_order%>" style="width:120px;margin:3px 6px; padding:0;"/></th>
									<th style="padding:0;"> <input type="text" name="v_activity" value="<% $params.v_activity%>" style="width:120px;margin:3px 6px; padding:0;"/></th>
									<th style="padding:0;"><input type="text" name="v_name" value="<% $params.v_name%>" style="width:120px;margin:3px 6px; padding:0;"/></th>
									<th style="padding:0;"><input type="text" name="v_launch_name" value="<% $params.v_launch_name%>" style="width:120px;margin:3px 6px; padding:0;"/></th>
									<th style="padding:0;"><input type="text" name="v_start"  value="<% $params.v_start %>" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width:120px;margin:3px 6px; padding:0;"/></th>
									<th style="padding:0;"><input type="text" name="v_end"  value="<% $params.v_end %>" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width:120px;margin:3px 6px; padding:0;"/></th>
									<th style="padding:0;"><input type="text" name="v_weight" value="<% $params.v_weight %>" style="width:50px;margin:3px 6px; padding:0;"/></th>
                                    <th style="padding:0; width:40px;">&nbsp;<!-- <input type="text" name="v_keywords"/>  --></th>
									<th style="padding:0;">
										<input class="button3" type="button" value="清空" onclick="javascript:go('index.php?do=kws.show');" style="margin-left:3px;"/>
										<input class="button3" type="submit" name="搜索" value="搜索"/>
									</th>  
								</tr>
								</form>							
							</thead>
						 
							<tfoot>
								<tr>
									<td colspan="14" style="border-top: 1px solid #DDDDDD;">
										
										<div class="pagination">
											<!-- <a href="#" title="First Page">&laquo; 首页</a><a href="#" title="Previous Page">&laquo; 上一页</a>
											<a href="#" class="number" title="1">1</a>
											<a href="#" class="number" title="2">2</a>
											<a href="#" class="number current" title="3">3</a>
											<a href="#" class="number" title="4">4</a>
											<a href="#" title="Next Page">下一页 &raquo;</a><a href="#" title="Last Page">末页 &raquo;</a>-->
											<% $page %>
										</div> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
								<% section name=obj loop=$adsList %>
								<tr>
                                	<td><input type="checkbox" name="checkbox_name" style="vertical-align: middle; height: 25px; margin-left:4px"></td>
									<td><% $adsList[obj]->id %></td>
									<td><% $adsList[obj]->order %></td>
									<td><% $adsList[obj]->activity %></td>
									<td><div style="white-space:nowrap;width:130px; overflow:hidden;"><% $adsList[obj]->name %></div></td>
                                    <td><% $adsList[obj]->launch_name %></td>
									<td><div style="white-space:nowrap;width:68px; overflow:hidden;"><% $adsList[obj]->start|date_format:"%Y-%m-%d %H:%M:%S"  %></div></td>
									<td><div style="white-space:nowrap;width:68px; overflow:hidden;"><% $adsList[obj]->end|date_format:"%Y-%m-%d %H:%M:%S"  %></div></td>
                                    <td><% $adsList[obj]->weight %></td>
									<td><% $adsList[obj]->status %></td>
                                    <td>
										<!-- Icons -->
										 <a href="javascript:void(0)" onclick="showPage('?do=kws.infoadd&id=<%$adsList[obj]->id%>');return false" title="Edit"><img src="images/icons/pencil.png" alt="Edit" /></a>
										 <a href="javascript:void(0)" onclick="show_delete('<% $adsList[obj]->name %>','?do=kws.delete&id=<%$adsList[obj]->id%>&t=ads');return false" title="Delete"><img src="images/icons/cross.png" alt="Delete" /></a> 
										 <a href="javascript:preview('<%$adsList[obj]->id%>','<%$cloud_host%>');" title="search"><img src="images/icons/search.png" alt="search" /></a>
									</td>
								</tr>
                                <%/section %>
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="content-box column-left">
				
				<div class="content-box-header">
					
					<h3>广告预览</h3>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab">
                        <div class="popup_preview1">
                            <a href="#" class="close"></a>
                            <div class="popup_txt5"><a href="#">毒药13号</a></div>
                            <div class="popup_txt6"><a href="#">来自意大利的迷魂香水系列，混合萨兰子，迷迭草与羽非露的香味……</a></div>
                            <div class="popup_txt7">点击访问：<a href="#">www.poison-love.com</a></div>      
                        </div>
					</div> <!-- End #tab3 -->        
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="content-box column-right">
				
				<div class="content-box-header"> <!-- Add the class "closed" to the Content box header to have it closed by default -->
					
					<h3>广告详情</h3>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab">
						<div class="advertinfo">
                        	<div class="advertinfo1"><span>ID： 2610</span><span>广告名称： GUCCI香水</span></div>
                            <div>关键词： GUCCI,  GUCCI香水,  GUCCI夏季</div>
                            <div>
                            	<div class="advert_cols1">搜索结果共</div>
                                <div class="advert_cols2">2536项</div>
                            </div>
                            <div>
                            	<div class="advert_cols1">已匹配到的广告位</div>
                                <div class="advert_cols2">768项</div>
                           </div>
                           <div>点击最多页面</div>
                           <div>
                            	<div class="advert_cols1"><a href="#">http://www.ellechina.com/fashion/fashionweek/liu...  </a></div>
                                <div class="advert_cols2">56次</div>
                           </div>
                           <div>
                            	<div class="advert_cols1"><a href="#">http://www.ellechina.com/fashion/fashionweek/liu...  </a></div>
                                <div class="advert_cols2">36次</div>
                           </div>
                           <div>
                            	<div class="advert_cols1"><a href="#">http://www.ellechina.com/fashion/fashionweek/liu...  </a></div>
                                <div class="advert_cols2">13次</div>
                           </div>
                        </div>
					</div> <!-- End #tab3 -->        
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			<div class="clear"></div>
			
			
			<!-- Start Notifications -->
			
				<div class="notification attention png_bg">
				<a href="#" class="close"><img src="images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>
					 	去当前广告订单号不正确。
				</div>
                
				</div>
			
			<div class="notification information png_bg">
				<a href="#" class="close"><img src="images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>
					冲突。当前广告订单号已被录入，如需<a href="#" style="color:#00F">修改</a>，请点击。
				</div>
			</div>
			
			<div class="notification success png_bg">
				<a href="#" class="close"><img src="images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>

				<div>订单号133354795已添加。		</div>
			</div>
			
			<div class="notification error png_bg">
				<a href="#" class="close"><img src="images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>订单号086632223已被删除。</div>
			</div>
			<!-- End Notifications -->
			
			<div id="dialog-modal" title="preview">
			</div>
			
<% include file="footer.html" %>
